@using System.Collections.Generic
@using System.Collections.ObjectModel
@using System.Web.Http.Description
@using System.Threading
@using System.Text
@using WebFoundation.WebServer.Areas.HelpPage.ModelDescriptions
@using WebFoundation.WebServer.Areas.HelpPage
@model IList<ParameterDescription>
@if (Model.Count > 0)
{
    foreach (ParameterDescription parameter in Model)
    {
        ModelDescription modelDescription = parameter.TypeDescription;
        StringBuilder sb = new StringBuilder();
        if (!string.IsNullOrWhiteSpace(parameter.Documentation))
        {
            var lines = HttpUtility.HtmlDecode(parameter.Documentation).Trim().Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
            foreach (var item in lines)
            {
                sb.Append("/** ").Append(item).Append(" */").AppendLine();
            }

        }

        if (parameter.Annotations.Count > 0)
        {
            foreach (var annotation in parameter.Annotations)
            {
                if (!string.IsNullOrWhiteSpace(annotation.Documentation))
                {
                    var lines = HttpUtility.HtmlDecode(annotation.Documentation).Trim().Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
                    foreach (var item in lines)
                    {
                        sb.Append("/** ").Append(item).Append(" */").AppendLine();
                    }
                }
            }
        }

        var typestr = modelDescription.GetTypeName();

        sb.Append(parameter.Name.Trim()).Append(":").Append(" ").Append(typestr).Append(";").AppendLine();
        <text>      @sb.ToString()</text>
    }
}